<html>
<head>
<title>TextWidth</title>
<link rel="stylesheet" href="../../../../../../Styles/Default.css" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<p class="Decl"><b>function</b> TextWidth(<b>const</b> Text: <b>String</b>): Integer;</p>
<p class="Decl"><b>function</b> TextWidthW(<b>const</b> Text: <b>Widestring</b>): Integer;</p>
<h2>Description</h2>
<p class="Body">Returns the width, in pixels, of a string rendered in the current 
<a href="../Properties/Font.htm">Font</a>.</p>
<p class="Body">&nbsp;</p>
<p class="Body">  <span class="Comment">Please note that the CLX versions of the non-Unicode methods do also default to Widestring because
    that is the native QT string format.</span></p>
<p class="Body">&nbsp;</p>
<p id="hidden">[See also]: <a href="TextHeight.htm">TextHeight</a>, <a href="TextExtent.htm">TextExtent</a>, 
  <a href="RenderText.htm">RenderText</a>, <a href="TextOut.htm">TextOut</a>.</p>
</body>
</html>
